package com.forum.entity.view;
import com.baomidou.mybatisplus.annotations.TableName;
import com.forum.entity.PsychologistEntity;
import com.forum.entity.news;
import org.apache.commons.beanutils.BeanUtils;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;

/**
 * @ClassNamenewsView
 * @Author 张继成
 * @Date 2023/12/4 22:48
 */
@TableName("news")
public class newsView  extends news implements Serializable {
    private static final long serialVersionUID=1L;
    public newsView(){

    }

    //捕获异常
    public newsView(news newsentiy){
        try {
            BeanUtils.copyProperties(this, newsentiy);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}
